|
Author |
Thread Statistics | Show CCP posts - 2 post(s) |

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.19 17:36:34 -
[1] - Quote
Still learning how to use the library. I have used the Query MarketTypes to get a list of the market types. Each MarketTypeCollection Item has has two properties MarketGroup and Type.
I would like to get an ItemType object from the Type's Uri and the icon from the Icon's Uri. How do I run a query on these and what type of object do I put it in?
For example Plagioclase (note it won't let me put more explicit text because it says no html even though I see links in previous posts), I would like to get an ItemType object so I can access the properties and attributes of items and an Image object.
Also, the MargetGroup property for Plagioclase has it's Uri set correctly, but it's Name property is null. Is this intentional and I would have to put the correct name string in this object by getting it from either the endpoint itself or my MarketGroup list retrieved from a Query of MarketGroups, or is this a bug and it should be populated. The Type property has it's Name is set to "Plagioclase".
Another question, does your web access abide by the 120 request per second with 400 request per seconds burst and 20 open connections limits specified for Crest?
I have the latest source code from github so if you want you could reference the source code in any explanations.
Thank you in advance. |

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.21 17:39:27 -
[2] - Quote
Thank you for that information. I had discovered the Load function but LoadAsync is better. I tried to put the Async functions in but with the await keyword, it wants the calls in a seperate async function, which I have not wrapped my head around yet. I removed the await keywords and it works, but the icon task never completes. I know the href is working, I can copy it from a watch window into a browser and get the image.
Here is my function...
MarketTypeInformation GetMarketTypeInformation(MarketTypeCollection.Item marketType) { MarketTypeInformation info = new MarketTypeInformation();
var itemType = eveCrest.LoadAsync(marketType.Type); var marketGroup = eveCrest.LoadAsync(marketType.MarketGroup); var itemIcon = eveCrest.LoadImageAsync(marketType.Type.Icon);
while (itemType.IsCompleted == false || marketGroup.IsCompleted == false || itemIcon.IsCompleted == false) ;
info.itemType = itemType.Result; info.marketGroup = marketGroup.Result;
using (var ms = new MemoryStream(itemIcon.Result)) { info.icon = Image.FromStream(ms); }
return (info); }
|

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.21 18:06:21 -
[3] - Quote
When I get the ItemType information of an item that contains DogmaAttribute and DogmaEffects, the Href parameters on those are null. How are you supposed to get the information for those? |

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.22 00:13:11 -
[4] - Quote
Thank you, I will read up more on the await/async. If you do fully use await/async do you need the IsCompleted? |

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.23 15:24:19 -
[5] - Quote
The latest build of Crest v3.2.2 has caused previously compiling code to error.
I have been trying to post some details, but no matter what I do it thinks I am posting html. |

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.23 15:27:53 -
[6] - Quote
Basically, I created a list of MarketGroup by Querying the root which returns a MarketGroupCollection and converting to a List with ToList() function, but it now says that it can't convert from MarketGroupCollection.MarketGroupItem to MarketGroup. If I change my list to a MarketGroupCollection.MarketGroupItem I can get that code to compile but later on when I am building the Market Group TreeView (basically a clone of the Eve Market Window) the ParentGroup field is not available in the MarketGroupCollection.MarketGroupItem. I use the ParentGroup field to build the tree from the out of order list of MarketGroup items. This probably a misunderstanding of what classes I should be using to do this, but it did previously work with Crest 3.2.1.
Thank you |

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.23 15:59:03 -
[7] - Quote
No problem, your code has saved me hours of programming. I have worked on a library for months with barely a fraction of the functionality that you provide in this library. I appreciate your work and your timely addressing of issues. I know of professional companies that take longer to address issues.
I wish my skills were a little better because I might be able to help with the debugging of the library, but alas I am just a hacker and not the type everyone thinks are cool.
Do you have any idea why I have issues posting source code? I can get some stuff to go through and see it in the preview then all of a sudden it says it cannot contain html and erases everything I have tried to enter. I copied the code I posted from the other day and it went in with no problems. It would be so much easier to post source code examples.
By the way, I am also trying to do the same thing with Regions and run into a similar issue, but I will wait until I have the MarketGroups working again and see if I can figure it out on my own before I spring that on you.
I think some of my problem is visualizing the difference between the objects with Crest endpoints and the actual resource objects. |

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.23 18:55:44 -
[8] - Quote
Don't think me a pain, but just tried Crest v3.2.3 and the initial call to create an EveCrest object causes an exception.
eveCrest = new EveCrest();
From my log text...
Creating EveCrest object. Exception: System.MissingMethodException: Method not found: 'System.String eZet.EveLib.Core.Config.get_AppData()'. at eZet.EveLib.EveCrestModule.RequestHandlers.CachedCrestRequestHandler..ctor(ISerializer serializer) at eZet.EveLib.EveCrestModule.EveCrest..ctor() at EveCrestContest.frmMarketItems.frmMarketItems_Shown(Object sender, EventArgs e) in C:\EveCrestContest v1.0.0.4\EveCrestContest\frmMarketItems.cs:line 49
|

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.23 19:43:04 -
[9] - Quote
Now the exception is
Creating EveCrest object. Exception: System.MissingFieldException: Field not found: 'eZet.EveLib.Core.Config.Separator'. at eZet.EveLib.EveCrestModule.RequestHandlers.CachedCrestRequestHandler..ctor(ISerializer serializer) at eZet.EveLib.EveCrestModule.EveCrest..ctor() at EveCrestContest.frmMarketItems.frmMarketItems_Shown(Object sender, EventArgs e) in D:\EveCrestContest v1.0.0.4\EveCrestContest\frmMarketItems.cs:line 49
|

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.23 19:53:24 -
[10] - Quote
Not a problem, this is not a urgent issue, just a hobby. Your help is appreciated. You must be in Europe or somewhere close? I am in Eastern U.S.
Thanks again. |
|

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.23 19:55:02 -
[11] - Quote
Woot, that did it. Get some rest. |

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.24 19:04:22 -
[12] - Quote
I was looking into using the authed crest information and in order to get a refresh token and encoded key, you need to have a developer account and register the application. I got the developer account working. I tried to register my application but the problem is the URL callback. How do you get away with this on a desktop application? I have seen someone mention using localhost with an http listener but this seems problematic. I assume that you have already registered an application because you have a refresh token and encoded key in your EveCrest_Authed_Tests.cs file in the Eve Online Library project. I don't want to use that token and string since they are yours. You probably shouldn't even have them publicly available in the library should you?
Here one of the posts. https://forums.eveonline.com/default.aspx?g=posts&m=6356570#post6356570 |

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.26 04:28:01 -
[13] - Quote
In an earlier post you mentioned that there is a place to add your program name in App.Config. How do I go about setting this in my project? |

Xiaou Bijoun
Fly By Knight Enterprises
0
|
Posted - 2016.02.27 00:42:28 -
[14] - Quote
My code was running today but after the shutdown, I am now getting errors on the EveXml.GetCharInfoAsync() function.
System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.Xml.XmlException: For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.
I can get you more of the exception information if you need.
Thank you |

Xiaou Bijoun
Fly By Knight Enterprises
1
|
Posted - 2016.03.13 15:32:44 -
[15] - Quote
Does anyone know who to contact about the public crest server being down? |

Xiaou Bijoun
X-Fleet Phantoms Care Factor
1
|
Posted - 2016.03.23 21:15:22 -
[16] - Quote
Haven't updated in a while, but this version broke some stuff.
Today I went from... Core 3.0.3.0 to 3.0.5.0 EveCrest 3.2.4.0 to 3.3.3.0 EveXml 3.0.5.0 to 3.0.6.0 NewtonSoft.Json 8.0.2 to 8.0.3
Currently using .net 4.5.2 in case that has relevance.
This call now causes an exception but I am guessing it has to do with some of the updates shown above.
var sellordercollection = await toolbox.eveCrest.LoadAsync(region.MarketSellOrders, "type", item.type);
item.type = "https://public-crest.eveonline.com/types/27912/"
I get "Invalid URI: The URI scheme is not valid."
EDIT: Also the exception being thrown is 'System.UriFormatException'. I have a try catch but for AggregateException, which I though that you mentioned somewhere is how you throw exceptions from inside your library. |

Xiaou Bijoun
X-Fleet Phantoms Care Factor
1
|
Posted - 2016.03.23 23:16:59 -
[17] - Quote
So I updated to 3.0.6 core and 3.4.0 crest but still does not work. I can fall back to a previous version and it works.
I tried to copy the example that you had in earlier post but the line
var old = region.Query(r => r.MarketBuyOrders, "type", itemLink.Uri);
gives error that itemLink.Uri does not exist and had to change to itemLink.Href.Uri.
Also that code appears to look for MarketBuyOrders of type #System.
I am guessing that is just an example, but it does work. |

Xiaou Bijoun
X-Fleet Phantoms Care Factor
1
|
Posted - 2016.03.24 20:48:13 -
[18] - Quote
The "type" is a named parameter that actually gets appended to the Uri used to access the market order endpoint.
Here is the console output of the actual command generated for a concussion bomb from Domain.
https://public-crest.eveonline.com/market/10000043/orders/sell/?type=https://public-crest.eveonline.com/types/27912/&
You can see the endpoint for sell orders from domain
https://public-crest.eveonline.com/market/10000043/orders/sell/
has a type parameter
?type=
which is set to the Concussion Bomb (Type.ID = 27912) endpoint's Uri
https://public-crest.eveonline.com/types/27912/&
Is the & at the end necessary? or an artifact of possibly adding more parameters?
|

Xiaou Bijoun
X-Fleet Phantoms Care Factor
1
|
Posted - 2016.04.21 17:08:25 -
[19] - Quote
Has this forum thread died out? I have been trying to post a question and it doesn't seem to be working.
EDIT: Okay it is working.
I am having an issue with the ZKillboard constructor.
It throws an exception.
"Field not found: 'eZet.EveLib.Core.Config.CacheFactory'."
It works in the evelib-master project in both the ZKillboard_Test and directly create my own ZKillboard object.
My project has many other libraries used including Newsoft.Json. Is it possible there is some conflict? I was wondering if it was using statements but it would not compile if the correct using statements were missing right?
My thought is to start a new project and only use the ZKillboard object to begin with to make sure it works, then start adding in other libraries until I can duplicate the problem.
Any other thoughts? |

Xiaou Bijoun
X-Fleet Phantoms Care Factor
1
|
Posted - 2016.04.27 19:38:42 -
[20] - Quote
That seems to have fixed the problem with creating a ZKillboard object.
Thanks again. |
|

Xiaou Bijoun
X-Fleet Phantoms Care Factor
1
|
Posted - 2016.05.03 18:39:38 -
[21] - Quote
Have you or are you intending on implementing the latest changes in the Citadel release?
For example the orders endpoint CCP recently added to get all orders from a region?
"Along with the buy and sell market order resources there is a new resource that gives you the both the buy and sell orders."
Thank you
|

Xiaou Bijoun
The Society of Mutual Respect Care Factor
1
|
Posted - 2016.06.24 16:02:44 -
[22] - Quote
I know you are probably concentrating on dynamic crest right now but I have an issue with the xml api for GetPlanetaryPins, the times have no information in them and the QuantityPerCycle is always 0. Everything else is fine.
Thank you.
|
|
|
|